{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "from os import walk, getcwd\n",
    "from PIL import Image\n",
    "\n",
    "#classes = [\"stopsign\"]\n",
    "\n",
    "def convert(size, box):\n",
    "    dw = 1./size[0]\n",
    "    dh = 1./size[1]\n",
    "    x = (box[0] + box[1])/2.0\n",
    "    y = (box[2] + box[3])/2.0\n",
    "    w = box[1] - box[0]\n",
    "    h = box[3] - box[2]\n",
    "    x = x*dw\n",
    "    w = w*dw\n",
    "    y = y*dh\n",
    "    h = h*dh\n",
    "    return (x,y,w,h)\n",
    "    \n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import glob\n",
    "import pandas as pd\n",
    "import xml.etree.ElementTree as ET\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "def class_text_to_int(row_label):\n",
    "    if row_label == 'D00':\n",
    "        return '0'\n",
    "    elif row_label == 'D01':\n",
    "        return '1'\n",
    "    elif row_label == 'D10':\n",
    "        return '2'\n",
    "    elif row_label == 'D11':\n",
    "        return '3'\n",
    "    elif row_label == 'D20':\n",
    "        return '4'\n",
    "    elif row_label == 'D40':\n",
    "        return '5'\n",
    "    elif row_label == 'D43':\n",
    "        return '6'\n",
    "    elif row_label == 'D44':\n",
    "        return '7'\n",
    "    else:\n",
    "        exit(0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "def xml_to_csv(path, outpath):\n",
    "    #c=0\n",
    "    xml_list = []\n",
    "    for xml_file in glob.glob(path + '/*.xml'):\n",
    "        tree = ET.parse(xml_file)\n",
    "        root = tree.getroot()\n",
    "        ct = 0\n",
    "        fn = root.find('filename').text \n",
    "        fn = fn.split('.')\n",
    "        print(fn[0])\n",
    "        txt_outpath = outpath + fn[0] + '.txt'\n",
    "        \n",
    "        w = int(root.find('size')[0].text)\n",
    "        h = int(root.find('size')[1].text)\n",
    "        #print(\"Output:\" + txt_outpath)\n",
    "        txt_outfile = open(txt_outpath, \"w\")\n",
    "        #print(txt_outfile)\n",
    "        for member in root.findall('object'):\n",
    "            # print(member.find('bndbox')[0].text)            \n",
    "            cls = member[0].text \n",
    "            xmin = int(member.find('bndbox')[0].text)\n",
    "            xmax = int(member.find('bndbox')[1].text)\n",
    "            ymin = int(member.find('bndbox')[2].text)\n",
    "            ymax = int(member.find('bndbox')[3].text)\n",
    "            #print(w,h)     \n",
    "            b = (float(xmin), float(xmax), float(ymin), float(ymax))\n",
    "            bb = convert((w,h), b)\n",
    "            #print(bb)\n",
    "            cls_id = class_text_to_int(cls)\n",
    "            txt_outfile.write(cls_id+ \" \" + \" \".join([str(a) for a in bb]) + '\\n')\n",
    "        txt_outfile.close()\n",
    "            #xml_list.append(value)            \n",
    "        #list_file.close()      \n",
    "    print(\"Files created\")\n",
    "def main():\n",
    "    image_path = \"F:/intern/RoadDamageDataset/Sumida/ann\"#os.path.join(os.getcwd(), 'annotations')\n",
    "    op = \"F:/intern/RoadDamageDataset/Sumida/lb/\"\n",
    "    xml_df = xml_to_csv(image_path,op)    \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Sumida_20170907132337\n",
      "Sumida_20170907132827\n",
      "Sumida_20170907132929\n",
      "Sumida_20170907132934\n",
      "Sumida_20170907132943\n",
      "Sumida_20170907133002\n",
      "Sumida_20170907134424\n",
      "Sumida_20170907134435\n",
      "Sumida_20170907134458\n",
      "Sumida_20170907135353\n",
      "Sumida_20170907135404\n",
      "Sumida_20170907135649\n",
      "Sumida_20170907135706\n",
      "Sumida_20170907135857\n",
      "Sumida_20170907135900\n",
      "Sumida_20170907135926\n",
      "Sumida_20170907141953\n",
      "Sumida_20170907141958\n",
      "Sumida_20170907142001\n",
      "Sumida_20170907142014\n",
      "Sumida_20170907142023\n",
      "Sumida_20170907142028\n",
      "Sumida_20170907143059\n",
      "Sumida_20170907143102\n",
      "Sumida_20170907143109\n",
      "Sumida_20170907143343\n",
      "Sumida_20170907143345\n",
      "Sumida_20170907143348\n",
      "Sumida_20170907143352\n",
      "Sumida_20170907143407\n",
      "Sumida_20170907143409\n",
      "Sumida_20170907143413\n",
      "Sumida_20170907143420\n",
      "Sumida_20170907143431\n",
      "Sumida_20170907143433\n",
      "Sumida_20170907143436\n",
      "Sumida_20170907143548\n",
      "Sumida_20170907143551\n",
      "Sumida_20170907143604\n",
      "Sumida_20170907143628\n",
      "Sumida_20170907143648\n",
      "Sumida_20170907143651\n",
      "Sumida_20170907143654\n",
      "Sumida_20170907143656\n",
      "Sumida_20170907143659\n",
      "Sumida_20170907143702\n",
      "Sumida_20170907144216\n",
      "Sumida_20170907144223\n",
      "Sumida_20170907151639\n",
      "Sumida_20170907151823\n",
      "Sumida_20170907151959\n",
      "Sumida_20170907152240\n",
      "Sumida_20170907152242\n",
      "Sumida_20170907152250\n",
      "Sumida_20170907152313\n",
      "Sumida_20170907152501\n",
      "Sumida_20170907152620\n",
      "Sumida_20170907152622\n",
      "Sumida_20170907152629\n",
      "Sumida_20170907152634\n",
      "Sumida_20170907152637\n",
      "Sumida_20170907152639\n",
      "Sumida_20170907152642\n",
      "Sumida_20170907152702\n",
      "Sumida_20170907152707\n",
      "Sumida_20170907152709\n",
      "Sumida_20170907152715\n",
      "Sumida_20170907152730\n",
      "Sumida_20170907152750\n",
      "Sumida_20170907152830\n",
      "Sumida_20170907152836\n",
      "Sumida_20170907152838\n",
      "Sumida_20170907152842\n",
      "Sumida_20170907152847\n",
      "Sumida_20170907152922\n",
      "Sumida_20170907153059\n",
      "Sumida_20170907153212\n",
      "Sumida_20170907153214\n",
      "Sumida_20170907153306\n",
      "Sumida_20170907153311\n",
      "Sumida_20170907153318\n",
      "Sumida_20170907153324\n",
      "Sumida_20170907153401\n",
      "Sumida_20170907155510\n",
      "Sumida_20170907155932\n",
      "Sumida_20170907160029\n",
      "Sumida_20170907160115\n",
      "Sumida_20170907160520\n",
      "Sumida_20170907160557\n",
      "Sumida_20170907160558\n",
      "Sumida_20170907160603\n",
      "Sumida_20170907160610\n",
      "Sumida_20170907160700\n",
      "Sumida_20170907160733\n",
      "Sumida_20170907160737\n",
      "Sumida_20170907160741\n",
      "Sumida_20170907161352\n",
      "Sumida_20170907161457\n",
      "Sumida_20170907162344\n",
      "Sumida_20170907162511\n",
      "Sumida_20170907162534\n",
      "Sumida_20170907162631\n",
      "Sumida_20170907162754\n",
      "Sumida_20170907162800\n",
      "Sumida_20170907162916\n",
      "Sumida_20170907163229\n",
      "Sumida_20170907163626\n",
      "Sumida_20170907163629\n",
      "Sumida_20170907163646\n",
      "Sumida_20170907163724\n",
      "Sumida_20170907164737\n",
      "Sumida_20170907164740\n",
      "Sumida_20170907164743\n",
      "Sumida_20170907164750\n",
      "Sumida_20170907164756\n",
      "Sumida_20170907164820\n",
      "Sumida_20170907164923\n",
      "Sumida_20170907165919\n",
      "Sumida_20170907170033\n",
      "Sumida_20170907170058\n",
      "Sumida_20170907170111\n",
      "Sumida_20170907170145\n",
      "Sumida_20170907170150\n",
      "Sumida_20170907170154\n",
      "Sumida_20170907170157\n",
      "Sumida_20170907170217\n",
      "Sumida_20170907170220\n",
      "Sumida_20170907170227\n",
      "Sumida_20170907170232\n",
      "Sumida_20170907170236\n",
      "Sumida_20170907170239\n",
      "Sumida_20170907170254\n",
      "Sumida_20170907170258\n",
      "Sumida_20170907170418\n",
      "Sumida_20170907170421\n",
      "Sumida_20170907170425\n",
      "Sumida_20170907170435\n",
      "Sumida_20170907170528\n",
      "Sumida_20170907170533\n",
      "Sumida_20170907170554\n",
      "Sumida_20170907170610\n",
      "Sumida_20170907170611\n",
      "Sumida_20170907170650\n",
      "Sumida_20170907170653\n",
      "Sumida_20170907170704\n",
      "Sumida_20170908150916\n",
      "Sumida_20170908150953\n",
      "Sumida_20170908151013\n",
      "Sumida_20170908151114\n",
      "Sumida_20170908152300\n",
      "Sumida_20170908152455\n",
      "Sumida_20170908152512\n",
      "Sumida_20170908152516\n",
      "Sumida_20170908152556\n",
      "Sumida_20170908155557\n",
      "Sumida_20170908155603\n",
      "Sumida_20170908155710\n",
      "Sumida_20170908155717\n",
      "Sumida_20170908155723\n",
      "Sumida_20170908161840\n",
      "Sumida_20170908161847\n",
      "Sumida_20170908161850\n",
      "Sumida_20170908161854\n",
      "Sumida_20170908162045\n",
      "Sumida_20170908162053\n",
      "Sumida_20170908162148\n",
      "Sumida_20170908162154\n",
      "Sumida_20170908162157\n",
      "Sumida_20170908162339\n",
      "Sumida_20170908162344\n",
      "Sumida_20170908162400\n",
      "Sumida_20170908162414\n",
      "Sumida_20170908162417\n",
      "Sumida_20170908162516\n",
      "Sumida_20170908162519\n",
      "Sumida_20170908162525\n",
      "Sumida_20170908164259\n",
      "Sumida_20170908164307\n",
      "Sumida_20170908164310\n",
      "Sumida_20170908164313\n",
      "Sumida_20170908164322\n",
      "Sumida_20170908164404\n",
      "Sumida_20170908164526\n",
      "Sumida_20170908164714\n",
      "Sumida_20170908164821\n",
      "Sumida_20170908164826\n",
      "Sumida_20170911135516\n",
      "Sumida_20170911135956\n",
      "Sumida_20170911135959\n",
      "Sumida_20170911140138\n",
      "Sumida_20170911140140\n",
      "Sumida_20170911140144\n",
      "Sumida_20170911140147\n",
      "Sumida_20170911140155\n",
      "Sumida_20170911140247\n",
      "Sumida_20170911140421\n",
      "Sumida_20170911142241\n",
      "Sumida_20170911142413\n",
      "Sumida_20170911142423\n",
      "Sumida_20170911142437\n",
      "Sumida_20170911142440\n",
      "Sumida_20170911142445\n",
      "Sumida_20170911142448\n",
      "Sumida_20170911142515\n",
      "Sumida_20170911142549\n",
      "Sumida_20170911142645\n",
      "Sumida_20170911142648\n",
      "Sumida_20170911142702\n",
      "Sumida_20170911142812\n",
      "Sumida_20170911142821\n",
      "Sumida_20170911143718\n",
      "Sumida_20170911143736\n",
      "Sumida_20170911143739\n",
      "Sumida_20170911143742\n",
      "Sumida_20170911143917\n",
      "Sumida_20170911143920\n",
      "Sumida_20170911143923\n",
      "Sumida_20170911143929\n",
      "Sumida_20170911143950\n",
      "Sumida_20170911144002\n",
      "Sumida_20170911144009\n",
      "Sumida_20170911144012\n",
      "Sumida_20170911144555\n",
      "Sumida_20170911144957\n",
      "Sumida_20170911145237\n",
      "Sumida_20170911145240\n",
      "Sumida_20170911145849\n",
      "Sumida_20170911145852\n",
      "Sumida_20170911145857\n",
      "Sumida_20170911150048\n",
      "Sumida_20170911150151\n",
      "Sumida_20170911150154\n",
      "Sumida_20170911150157\n",
      "Sumida_20170911150208\n",
      "Sumida_20170911150211\n",
      "Sumida_20170911150225\n",
      "Sumida_20170911150229\n",
      "Sumida_20170911150407\n",
      "Sumida_20170911150505\n",
      "Sumida_20170911150532\n",
      "Sumida_20170911150727\n",
      "Sumida_20170911150728\n",
      "Sumida_20170911150733\n",
      "Sumida_20170911150857\n",
      "Sumida_20170911152116\n",
      "Sumida_20170911152119\n",
      "Sumida_20170911152123\n",
      "Sumida_20170911152132\n",
      "Sumida_20170911152216\n",
      "Sumida_20170911152309\n",
      "Sumida_20170911152322\n",
      "Sumida_20170911152328\n",
      "Sumida_20170911152330\n",
      "Sumida_20170911152347\n",
      "Sumida_20170911152839\n",
      "Sumida_20170911152922\n",
      "Sumida_20170911152926\n",
      "Sumida_20170911152937\n",
      "Sumida_20170911153219\n",
      "Sumida_20170911153228\n",
      "Sumida_20170911153232\n",
      "Sumida_20170911153235\n",
      "Sumida_20170911153243\n",
      "Sumida_20170911153253\n",
      "Sumida_20170911153311\n",
      "Sumida_20170911153326\n",
      "Sumida_20170911153330\n",
      "Sumida_20170911153331\n",
      "Sumida_20170911153334\n",
      "Sumida_20170911155759\n",
      "Sumida_20170911155802\n",
      "Sumida_20170911155804\n",
      "Sumida_20170911155813\n",
      "Sumida_20170911155818\n",
      "Sumida_20170911155824\n",
      "Sumida_20170911155836\n",
      "Sumida_20170911165913\n",
      "Sumida_20170911165916\n",
      "Sumida_20170911165953\n",
      "Sumida_20170911165957\n",
      "Sumida_20170911170000\n",
      "Sumida_20170911170002\n",
      "Sumida_20170911170005\n",
      "Sumida_20170911170008\n",
      "Sumida_20170911170035\n",
      "Sumida_20170911170102\n",
      "Sumida_20170911170240\n",
      "Sumida_20170911170247\n",
      "Sumida_20170911170249\n",
      "Sumida_20170911170250\n",
      "Sumida_20170911170622\n",
      "Sumida_20170911170625\n",
      "Sumida_20170911170628\n",
      "Sumida_20170911170632\n",
      "Sumida_20170911170634\n",
      "Sumida_20170911170640\n",
      "Sumida_20170911170644\n",
      "Sumida_20170911170647\n",
      "Sumida_20170911170752\n",
      "Sumida_20170911170755\n",
      "Sumida_20170911170808\n",
      "Sumida_20170911170914\n",
      "Sumida_20170911170916\n",
      "Sumida_20170911171244\n",
      "Sumida_20170911171257\n",
      "Sumida_20170911171301\n",
      "Sumida_20170911171304\n",
      "Sumida_20170911171312\n",
      "Sumida_20170911171417\n",
      "Sumida_20170911171455\n",
      "Sumida_20170911171507\n",
      "Sumida_20170911171512\n",
      "Sumida_20170911171525\n",
      "Sumida_20170911171535\n",
      "Sumida_20170911171544\n",
      "Sumida_20170911171553\n",
      "Sumida_20170911171606\n",
      "Sumida_20170911171610\n",
      "Sumida_20170911171622\n",
      "Sumida_20170911171626\n",
      "Sumida_20170911171632\n",
      "Sumida_20170911171638\n",
      "Sumida_20170911171641\n",
      "Sumida_20170911171643\n",
      "Sumida_20170911171646\n",
      "Sumida_20170911171649\n",
      "Sumida_20170911171657\n",
      "Sumida_20170911171753\n",
      "Sumida_20170911171856\n",
      "Sumida_20170911171858\n",
      "Sumida_20170911171904\n",
      "Sumida_20170911171909\n",
      "Sumida_20170911171912\n",
      "Sumida_20170911171914\n",
      "Sumida_20170911171917\n",
      "Sumida_20170911171920\n",
      "Sumida_20170911171923\n",
      "Sumida_20170911172423\n",
      "Sumida_20170911172517\n",
      "Sumida_20170912091043\n",
      "Sumida_20170912091219\n",
      "Sumida_20170912091224\n",
      "Sumida_20170912091228\n",
      "Sumida_20170912091250\n",
      "Sumida_20170912091306\n",
      "Sumida_20170912091407\n",
      "Sumida_20170912091410\n",
      "Sumida_20170912091502\n",
      "Sumida_20170912091552\n",
      "Sumida_20170912091614\n",
      "Sumida_20170912091650\n",
      "Sumida_20170912091727\n",
      "Sumida_20170912091748\n",
      "Sumida_20170912091754\n",
      "Sumida_20170912091801\n",
      "Sumida_20170912091806\n",
      "Sumida_20170912091825\n",
      "Sumida_20170912091853\n",
      "Sumida_20170912091856\n",
      "Sumida_20170912091904\n",
      "Sumida_20170912091907\n",
      "Sumida_20170912091910\n",
      "Sumida_20170912091913\n",
      "Sumida_20170912095827\n",
      "Sumida_20170912100043\n",
      "Sumida_20170912100101\n",
      "Sumida_20170912100104\n",
      "Sumida_20170912100111\n",
      "Sumida_20170912100223\n",
      "Sumida_20170912112333\n",
      "Sumida_20170912112420\n",
      "Sumida_20170912112524\n",
      "Sumida_20170912112641\n",
      "Sumida_20170912113930\n",
      "Sumida_20170912113934\n",
      "Sumida_20170912145236\n",
      "Sumida_20170912145239\n",
      "Sumida_20170912145241\n",
      "Sumida_20170912145243\n",
      "Sumida_20170912145246\n",
      "Sumida_20170912145313\n",
      "Sumida_20170912145315\n",
      "Sumida_20170912145318\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Sumida_20170912145323\n",
      "Sumida_20170912145326\n",
      "Sumida_20170912145331\n",
      "Sumida_20170912145334\n",
      "Sumida_20170912145336\n",
      "Sumida_20170912145338\n",
      "Sumida_20170912145351\n",
      "Sumida_20170912145355\n",
      "Sumida_20170912145358\n",
      "Sumida_20170912145401\n",
      "Sumida_20170912145411\n",
      "Sumida_20170912145948\n",
      "Sumida_20170912145951\n",
      "Sumida_20170912150143\n",
      "Sumida_20170912150232\n",
      "Sumida_20170912150234\n",
      "Sumida_20170912150417\n",
      "Sumida_20170912150433\n",
      "Sumida_20170912150453\n",
      "Sumida_20170912152056\n",
      "Sumida_20170912152116\n",
      "Sumida_20170912152120\n",
      "Sumida_20170912152126\n",
      "Sumida_20170912152128\n",
      "Sumida_20170912152239\n",
      "Sumida_20170912152242\n",
      "Sumida_20170912152243\n",
      "Sumida_20170912152246\n",
      "Sumida_20170912152248\n",
      "Sumida_20170912152251\n",
      "Sumida_20170912152346\n",
      "Sumida_20170912152349\n",
      "Sumida_20170912152352\n",
      "Sumida_20170912152355\n",
      "Sumida_20170912152358\n",
      "Sumida_20170912152419\n",
      "Sumida_20170912152422\n",
      "Sumida_20170912152437\n",
      "Sumida_20170912152503\n",
      "Sumida_20170912152523\n",
      "Sumida_20170912154251\n",
      "Sumida_20170912154254\n",
      "Sumida_20170912154256\n",
      "Sumida_20170912154305\n",
      "Sumida_20170912154307\n",
      "Sumida_20170912154341\n",
      "Sumida_20170912154348\n",
      "Sumida_20170912154351\n",
      "Sumida_20170912154353\n",
      "Sumida_20170912154603\n",
      "Sumida_20170912154645\n",
      "Sumida_20170912154652\n",
      "Sumida_20170912154705\n",
      "Sumida_20170912154708\n",
      "Sumida_20170912154748\n",
      "Sumida_20170912154808\n",
      "Sumida_20170912154829\n",
      "Sumida_20170912154845\n",
      "Sumida_20170913150805\n",
      "Sumida_20170913150950\n",
      "Sumida_20170913151107\n",
      "Sumida_20170913151109\n",
      "Sumida_20170913151112\n",
      "Sumida_20170913151115\n",
      "Sumida_20170913151206\n",
      "Sumida_20170913151209\n",
      "Sumida_20170913151212\n",
      "Sumida_20170913153254\n",
      "Sumida_20170913153256\n",
      "Sumida_20170913153259\n",
      "Sumida_20170913153302\n",
      "Sumida_20170913153306\n",
      "Sumida_20170913153310\n",
      "Sumida_20170913153652\n",
      "Sumida_20170913154235\n",
      "Sumida_20170913154305\n",
      "Sumida_20170913154334\n",
      "Sumida_20170913154352\n",
      "Sumida_20170913154355\n",
      "Sumida_20170913154358\n",
      "Sumida_20170913154401\n",
      "Sumida_20170913154404\n",
      "Sumida_20170913154411\n",
      "Sumida_20170913154414\n",
      "Sumida_20170913154418\n",
      "Sumida_20170913154421\n",
      "Sumida_20170913154425\n",
      "Sumida_20170913154538\n",
      "Sumida_20170913154541\n",
      "Sumida_20170913154552\n",
      "Sumida_20170913154555\n",
      "Sumida_20170913154749\n",
      "Sumida_20170913154755\n",
      "Sumida_20170913154802\n",
      "Sumida_20170913154805\n",
      "Sumida_20170913154839\n",
      "Sumida_20170913154843\n",
      "Sumida_20170913154847\n",
      "Sumida_20170913154852\n",
      "Sumida_20170913155716\n",
      "Sumida_20170913155720\n",
      "Sumida_20170913155727\n",
      "Sumida_20170913155735\n",
      "Sumida_20170913155800\n",
      "Sumida_20170913155814\n",
      "Sumida_20170913155816\n",
      "Sumida_20170913155822\n",
      "Sumida_20170913155825\n",
      "Sumida_20170913155832\n",
      "Sumida_20170913155855\n",
      "Sumida_20170913155858\n",
      "Sumida_20170913155901\n",
      "Sumida_20170913155910\n",
      "Sumida_20170913160036\n",
      "Sumida_20170913160128\n",
      "Sumida_20170913160136\n",
      "Sumida_20170913160217\n",
      "Sumida_20170913160219\n",
      "Sumida_20170913160231\n",
      "Sumida_20170913160236\n",
      "Sumida_20170913160240\n",
      "Sumida_20170913160252\n",
      "Sumida_20170913160257\n",
      "Sumida_20170913160305\n",
      "Sumida_20170913160308\n",
      "Sumida_20170913160311\n",
      "Sumida_20170913160313\n",
      "Sumida_20170913160316\n",
      "Sumida_20170913160319\n",
      "Sumida_20170913160322\n",
      "Sumida_20170913160327\n",
      "Sumida_20170913160329\n",
      "Sumida_20170913160332\n",
      "Sumida_20170913160335\n",
      "Sumida_20170913160337\n",
      "Sumida_20170913160340\n",
      "Sumida_20170913160343\n",
      "Sumida_20170913160346\n",
      "Sumida_20170913160348\n",
      "Sumida_20170913160351\n",
      "Sumida_20170913160355\n",
      "Sumida_20170913160358\n",
      "Sumida_20170913160429\n",
      "Sumida_20170913160433\n",
      "Sumida_20170913160441\n",
      "Sumida_20170913160644\n",
      "Sumida_20170913160744\n",
      "Sumida_20170913160754\n",
      "Sumida_20170913160917\n",
      "Sumida_20170913160920\n",
      "Sumida_20170913161059\n",
      "Sumida_20170913161102\n",
      "Sumida_20170913161107\n",
      "Sumida_20170913161113\n",
      "Sumida_20170913161119\n",
      "Sumida_20170913161122\n",
      "Sumida_20170913161233\n",
      "Sumida_20170913161239\n",
      "Sumida_20170913161241\n",
      "Sumida_20170913161248\n",
      "Sumida_20170913161934\n",
      "Sumida_20170913162000\n",
      "Sumida_20170913162004\n",
      "Sumida_20170913162014\n",
      "Sumida_20170913162026\n",
      "Sumida_20170913162030\n",
      "Sumida_20170913162035\n",
      "Sumida_20170913162038\n",
      "Sumida_20170913162043\n",
      "Sumida_20170913162046\n",
      "Sumida_20170913162049\n",
      "Sumida_20170913162057\n",
      "Sumida_20170913162059\n",
      "Sumida_20170913162102\n",
      "Sumida_20170913162107\n",
      "Sumida_20170913162110\n",
      "Sumida_20170913162114\n",
      "Sumida_20170913162117\n",
      "Sumida_20170913162120\n",
      "Sumida_20170913162122\n",
      "Sumida_20170913162133\n",
      "Sumida_20170913162136\n",
      "Sumida_20170913162141\n",
      "Sumida_20170913162340\n",
      "Sumida_20170913162453\n",
      "Sumida_20170913163635\n",
      "Sumida_20170913163701\n",
      "Sumida_20170913164642\n",
      "Sumida_20170913164705\n",
      "Sumida_20170913164725\n",
      "Sumida_20170913164727\n",
      "Sumida_20170913164730\n",
      "Sumida_20170913164735\n",
      "Sumida_20170913164738\n",
      "Sumida_20170913164753\n",
      "Sumida_20170913164756\n",
      "Sumida_20170913164758\n",
      "Sumida_20170913164801\n",
      "Sumida_20170913165217\n",
      "Sumida_20170913165333\n",
      "Sumida_20170913165347\n",
      "Sumida_20170913165357\n",
      "Sumida_20170913165414\n",
      "Sumida_20170913165430\n",
      "Sumida_20170913165433\n",
      "Sumida_20170913165436\n",
      "Sumida_20170913165438\n",
      "Sumida_20170913165457\n",
      "Sumida_20170913165531\n",
      "Sumida_20170913165536\n",
      "Sumida_20170913165541\n",
      "Sumida_20170913165543\n",
      "Sumida_20170913165546\n",
      "Sumida_20170913165549\n",
      "Sumida_20170913165552\n",
      "Sumida_20170914155334\n",
      "Sumida_20170914155500\n",
      "Sumida_20170914155615\n",
      "Sumida_20170914155700\n",
      "Sumida_20170914155745\n",
      "Sumida_20170914155815\n",
      "Sumida_20170914160340\n",
      "Sumida_20170914160351\n",
      "Sumida_20170914160419\n",
      "Sumida_20170914160422\n",
      "Sumida_20170914160429\n",
      "Sumida_20170914160811\n",
      "Sumida_20170914160818\n",
      "Sumida_20170914160822\n",
      "Sumida_20170914160825\n",
      "Sumida_20170914163100\n",
      "Sumida_20170914170004\n",
      "Sumida_20170914170506\n",
      "Sumida_20170914170747\n",
      "Sumida_20170914170749\n",
      "Sumida_20170914170758\n",
      "Sumida_20170914170805\n",
      "Sumida_20170914170920\n",
      "Sumida_20170914171007\n",
      "Sumida_20170914171039\n",
      "Sumida_20170914171135\n",
      "Sumida_20170914171138\n",
      "Sumida_20170914171333\n",
      "Sumida_20170914171353\n",
      "Sumida_20170914171405\n",
      "Sumida_20170914171527\n",
      "Sumida_20170914171530\n",
      "Sumida_20170914171538\n",
      "Sumida_20170914171553\n",
      "Sumida_20170914171631\n",
      "Sumida_20170914171845\n",
      "Sumida_20170914171850\n",
      "Sumida_20170915090232\n",
      "Sumida_20170915090321\n",
      "Sumida_20170915090322\n",
      "Sumida_20170915090432\n",
      "Sumida_20170915090443\n",
      "Sumida_20170915090534\n",
      "Sumida_20170915090539\n",
      "Sumida_20170915090545\n",
      "Sumida_20170915090626\n",
      "Sumida_20170915090627\n",
      "Sumida_20170915090629\n",
      "Sumida_20170915090632\n",
      "Sumida_20170915090633\n",
      "Sumida_20170915090645\n",
      "Sumida_20170915090648\n",
      "Sumida_20170915090650\n",
      "Sumida_20170915090654\n",
      "Sumida_20170915090655\n",
      "Sumida_20170915090657\n",
      "Sumida_20170915090658\n",
      "Sumida_20170915090700\n",
      "Sumida_20170915090701\n",
      "Sumida_20170915090703\n",
      "Sumida_20170915090708\n",
      "Sumida_20170915090709\n",
      "Sumida_20170915090711\n",
      "Sumida_20170915090733\n",
      "Sumida_20170915090736\n",
      "Sumida_20170915090759\n",
      "Sumida_20170915090802\n",
      "Sumida_20170915090812\n",
      "Sumida_20170915090813\n",
      "Sumida_20170915090820\n",
      "Sumida_20170915090952\n",
      "Sumida_20170915090956\n",
      "Sumida_20170915090959\n",
      "Sumida_20170915091002\n",
      "Sumida_20170915091017\n",
      "Sumida_20170915091108\n",
      "Sumida_20170915091132\n",
      "Sumida_20170915091136\n",
      "Sumida_20170915091139\n",
      "Sumida_20170915091342\n",
      "Sumida_20170915091351\n",
      "Sumida_20170915091357\n",
      "Sumida_20170915091400\n",
      "Sumida_20170915091513\n",
      "Sumida_20170915091726\n",
      "Sumida_20170915091737\n",
      "Sumida_20170915091745\n",
      "Sumida_20170915091750\n",
      "Sumida_20170915091802\n",
      "Sumida_20170915091812\n",
      "Sumida_20170915091845\n",
      "Sumida_20170915091950\n",
      "Sumida_20170915092045\n",
      "Sumida_20170915092111\n",
      "Sumida_20170915092122\n",
      "Sumida_20170915092218\n",
      "Sumida_20170915092230\n",
      "Sumida_20170915092242\n",
      "Sumida_20170915092841\n",
      "Sumida_20170915093111\n",
      "Sumida_20170915093127\n",
      "Sumida_20170915093135\n",
      "Sumida_20170915093138\n",
      "Sumida_20170915093141\n",
      "Sumida_20170915093149\n",
      "Sumida_20170915093152\n",
      "Sumida_20170915093302\n",
      "Sumida_20170915093331\n",
      "Sumida_20170915093341\n",
      "Sumida_20170915093346\n",
      "Sumida_20170915093351\n",
      "Sumida_20170915093402\n",
      "Sumida_20170915093404\n",
      "Sumida_20170915093408\n",
      "Sumida_20170915093415\n",
      "Sumida_20170915093418\n",
      "Sumida_20170915093422\n",
      "Sumida_20170915093429\n",
      "Sumida_20170915093432\n",
      "Sumida_20170915093437\n",
      "Sumida_20170915093447\n",
      "Sumida_20170915093652\n",
      "Sumida_20170915093746\n",
      "Sumida_20170915093752\n",
      "Sumida_20170915093753\n",
      "Sumida_20170915093813\n",
      "Sumida_20170915093941\n",
      "Sumida_20170915093947\n",
      "Sumida_20170915094308\n",
      "Sumida_20170915094338\n",
      "Sumida_20170915094343\n",
      "Sumida_20170915094352\n",
      "Sumida_20170915094438\n",
      "Sumida_20170915094442\n",
      "Sumida_20170915094445\n",
      "Sumida_20170915094449\n",
      "Sumida_20170915094516\n",
      "Sumida_20170915094519\n",
      "Sumida_20170915094527\n",
      "Sumida_20170915094726\n",
      "Sumida_20170915094744\n",
      "Sumida_20170915095055\n",
      "Sumida_20170915095225\n",
      "Sumida_20170915095903\n",
      "Sumida_20170915095909\n",
      "Sumida_20170915095915\n",
      "Sumida_20170915095928\n",
      "Sumida_20170915100005\n",
      "Sumida_20170915100008\n",
      "Sumida_20170915100011\n",
      "Sumida_20170915100023\n",
      "Sumida_20170915100043\n",
      "Sumida_20170915100103\n",
      "Sumida_20170915100133\n",
      "Sumida_20170915100139\n",
      "Sumida_20170915100226\n",
      "Sumida_20170915100536\n",
      "Sumida_20170915100539\n",
      "Sumida_20170915100543\n",
      "Sumida_20170915100546\n",
      "Sumida_20170915100551\n",
      "Sumida_20170915101253\n",
      "Sumida_20170915101300\n",
      "Sumida_20170915101306\n",
      "Sumida_20170915101432\n",
      "Sumida_20170915134411\n",
      "Sumida_20170915134527\n",
      "Sumida_20170915134811\n",
      "Sumida_20170915134821\n",
      "Sumida_20170915135135\n",
      "Sumida_20170915135143\n",
      "Sumida_20170915135152\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Sumida_20170915143844\n",
      "Sumida_20170915143848\n",
      "Sumida_20170915143907\n",
      "Sumida_20170915144008\n",
      "Sumida_20170915144147\n",
      "Sumida_20170915151055\n",
      "Sumida_20170915151222\n",
      "Sumida_20170915151227\n",
      "Sumida_20170915151242\n",
      "Sumida_20170915151509\n",
      "Sumida_20170915151528\n",
      "Sumida_20170915152300\n",
      "Sumida_20170915152532\n",
      "Sumida_20170915152539\n",
      "Sumida_20170915152542\n",
      "Sumida_20170915152551\n",
      "Sumida_20170915152618\n",
      "Sumida_20170915152621\n",
      "Sumida_20170915152624\n",
      "Sumida_20170915152627\n",
      "Sumida_20170915152901\n",
      "Sumida_20170915152905\n",
      "Sumida_20170915152922\n",
      "Sumida_20170915152937\n",
      "Sumida_20170915152949\n",
      "Sumida_20170915153020\n",
      "Sumida_20170915153057\n",
      "Sumida_20170915153100\n",
      "Sumida_20170915153103\n",
      "Sumida_20170915153716\n",
      "Sumida_20170915153724\n",
      "Sumida_20170915153927\n",
      "Sumida_20170915153933\n",
      "Sumida_20170915153935\n",
      "Sumida_20170915153940\n",
      "Sumida_20170915153943\n",
      "Sumida_20170915153946\n",
      "Sumida_20170915154059\n",
      "Sumida_20170915154102\n",
      "Sumida_20170915154104\n",
      "Sumida_20170915154126\n",
      "Sumida_20170915154138\n",
      "Sumida_20170915154147\n",
      "Sumida_20170915154151\n",
      "Sumida_20170915154219\n",
      "Sumida_20170915154804\n",
      "Sumida_20170915154807\n",
      "Sumida_20170915154815\n",
      "Sumida_20170915154823\n",
      "Sumida_20170915154836\n",
      "Sumida_20170915154846\n",
      "Sumida_20170915154856\n",
      "Sumida_20170915154919\n",
      "Sumida_20170915154921\n",
      "Sumida_20170915154923\n",
      "Sumida_20170915154931\n",
      "Sumida_20170915154934\n",
      "Sumida_20170915155118\n",
      "Sumida_20170915155121\n",
      "Sumida_20170915155124\n",
      "Sumida_20170915155126\n",
      "Sumida_20170915155129\n",
      "Sumida_20170915155133\n",
      "Sumida_20170915155147\n",
      "Sumida_20170915155149\n",
      "Sumida_20170915155152\n",
      "Sumida_20170915155157\n",
      "Sumida_20170915155200\n",
      "Sumida_20170915155203\n",
      "Sumida_20170915155212\n",
      "Sumida_20170915155216\n",
      "Sumida_20170915155355\n",
      "Sumida_20170915155358\n",
      "Sumida_20170915155813\n",
      "Sumida_20170915160034\n",
      "Sumida_20170915160039\n",
      "Sumida_20170915160042\n",
      "Sumida_20170915160045\n",
      "Sumida_20170915160047\n",
      "Sumida_20170915160058\n",
      "Sumida_20170915160104\n",
      "Sumida_20170915160116\n",
      "Sumida_20170915160119\n",
      "Sumida_20170915160122\n",
      "Sumida_20170915160126\n",
      "Sumida_20170915160151\n",
      "Sumida_20170915160155\n",
      "Sumida_20170915160204\n",
      "Sumida_20170915160307\n",
      "Sumida_20170915160313\n",
      "Sumida_20170915160333\n",
      "Sumida_20170915160403\n",
      "Sumida_20170915160407\n",
      "Sumida_20170915160410\n",
      "Sumida_20170915160413\n",
      "Sumida_20170915160416\n",
      "Sumida_20170915160514\n",
      "Sumida_20170915160517\n",
      "Sumida_20170915160522\n",
      "Sumida_20170915160525\n",
      "Sumida_20170915160528\n",
      "Sumida_20170915160541\n",
      "Sumida_20170915160544\n",
      "Sumida_20170915160551\n",
      "Sumida_20170915160554\n",
      "Sumida_20170915160555\n",
      "Sumida_20170915160558\n",
      "Sumida_20170915160740\n",
      "Sumida_20170915160742\n",
      "Sumida_20170915160908\n",
      "Sumida_20170915160926\n",
      "Sumida_20170915160929\n",
      "Sumida_20170915161138\n",
      "Sumida_20170915161141\n",
      "Sumida_20170915161146\n",
      "Sumida_20170915161155\n",
      "Sumida_20170915161157\n",
      "Sumida_20170915161203\n",
      "Sumida_20170915161222\n",
      "Sumida_20170915161225\n",
      "Sumida_20170915161228\n",
      "Sumida_20170915161320\n",
      "Sumida_20170915161327\n",
      "Sumida_20170915161714\n",
      "Sumida_20170915161815\n",
      "Sumida_20170915161835\n",
      "Sumida_20170915161843\n",
      "Sumida_20170915161854\n",
      "Sumida_20170915162300\n",
      "Sumida_20170915162307\n",
      "Sumida_20170915162316\n",
      "Sumida_20170915162319\n",
      "Sumida_20170915162600\n",
      "Sumida_20170915162604\n",
      "Sumida_20170915162624\n",
      "Sumida_20170915162625\n",
      "Sumida_20170915162628\n",
      "Sumida_20170915162629\n",
      "Sumida_20170915162632\n",
      "Sumida_20170915162635\n",
      "Sumida_20170915162701\n",
      "Sumida_20170915162704\n",
      "Sumida_20170915162708\n",
      "Sumida_20170915162711\n",
      "Sumida_20170915162714\n",
      "Sumida_20170915162717\n",
      "Sumida_20170915162723\n",
      "Sumida_20170915162726\n",
      "Sumida_20170915162728\n",
      "Sumida_20170915162731\n",
      "Sumida_20170915162752\n",
      "Sumida_20170915162801\n",
      "Sumida_20170915162924\n",
      "Sumida_20170915162927\n",
      "Sumida_20170915162929\n",
      "Sumida_20170915162944\n",
      "Sumida_20170915162957\n",
      "Sumida_20170915163107\n",
      "Sumida_20170915163112\n",
      "Sumida_20170915163119\n",
      "Sumida_20170919132110\n",
      "Sumida_20170919132246\n",
      "Sumida_20170920135706\n",
      "Sumida_20170920135709\n",
      "Sumida_20170920135741\n",
      "Sumida_20170920135755\n",
      "Sumida_20170920135803\n",
      "Sumida_20170920135832\n",
      "Sumida_20170920135835\n",
      "Sumida_20170920135922\n",
      "Sumida_20170920135928\n",
      "Sumida_20170920140030\n",
      "Sumida_20170920140050\n",
      "Sumida_20170920140128\n",
      "Sumida_20170920140148\n",
      "Sumida_20170920140235\n",
      "Sumida_20170920140314\n",
      "Sumida_20170920140412\n",
      "Sumida_20170920140531\n",
      "Sumida_20170920142817\n",
      "Sumida_20170920142822\n",
      "Sumida_20170920142824\n",
      "Sumida_20170920142826\n",
      "Sumida_20170920142829\n",
      "Sumida_20170920142909\n",
      "Sumida_20170920143023\n",
      "Sumida_20170920143031\n",
      "Sumida_20170920143033\n",
      "Sumida_20170920143035\n",
      "Sumida_20170920143037\n",
      "Sumida_20170920143424\n",
      "Sumida_20170920143429\n",
      "Sumida_20170920143432\n",
      "Sumida_20170920143435\n",
      "Sumida_20170920143438\n",
      "Sumida_20170920143541\n",
      "Sumida_20170920143544\n",
      "Sumida_20170920143629\n",
      "Sumida_20170920143630\n",
      "Sumida_20170920143642\n",
      "Sumida_20170920143645\n",
      "Sumida_20170920143649\n",
      "Sumida_20170920143652\n",
      "Sumida_20170920143656\n",
      "Sumida_20170920143705\n",
      "Sumida_20170920143710\n",
      "Sumida_20170920144018\n",
      "Sumida_20170920144029\n",
      "Sumida_20170920144526\n",
      "Sumida_20170920144537\n",
      "Sumida_20170920144710\n",
      "Sumida_20170920144714\n",
      "Sumida_20170920144717\n",
      "Sumida_20170920144755\n",
      "Sumida_20170920144758\n",
      "Sumida_20170920145035\n",
      "Sumida_20170920145040\n",
      "Sumida_20170920145043\n",
      "Sumida_20170920145057\n",
      "Sumida_20170920145059\n",
      "Sumida_20170920145102\n",
      "Sumida_20170920145110\n",
      "Sumida_20170920145239\n",
      "Sumida_20170920145251\n",
      "Sumida_20170920145350\n",
      "Sumida_20170920145353\n",
      "Sumida_20170920145357\n",
      "Sumida_20170920145407\n",
      "Sumida_20170920145509\n",
      "Sumida_20170920145517\n",
      "Sumida_20170920145519\n",
      "Sumida_20170920150814\n",
      "Sumida_20170920150837\n",
      "Sumida_20170920150838\n",
      "Sumida_20170920150846\n",
      "Sumida_20170920150850\n",
      "Sumida_20170920150852\n",
      "Sumida_20170920150854\n",
      "Sumida_20170920150908\n",
      "Sumida_20170920150922\n",
      "Sumida_20170920150928\n",
      "Sumida_20170920151600\n",
      "Sumida_20170920151603\n",
      "Sumida_20170920151613\n",
      "Sumida_20170920151640\n",
      "Sumida_20170920151653\n",
      "Sumida_20170920151655\n",
      "Sumida_20170920151701\n",
      "Sumida_20170920151702\n",
      "Sumida_20170920151714\n",
      "Sumida_20170920151717\n",
      "Sumida_20170920151722\n",
      "Sumida_20170920151725\n",
      "Sumida_20170920151727\n",
      "Sumida_20170920151746\n",
      "Sumida_20170920151751\n",
      "Sumida_20170920151753\n",
      "Sumida_20170920151801\n",
      "Sumida_20170920151804\n",
      "Sumida_20170920151811\n",
      "Sumida_20170920151843\n",
      "Sumida_20170920151848\n",
      "Sumida_20170920151852\n",
      "Sumida_20170920151859\n",
      "Sumida_20170920151915\n",
      "Sumida_20170920151944\n",
      "Sumida_20170920151947\n",
      "Sumida_20170920152004\n",
      "Sumida_20170920153053\n",
      "Sumida_20170920153215\n",
      "Sumida_20170920153221\n",
      "Sumida_20170920153345\n",
      "Sumida_20170920153347\n",
      "Sumida_20170920153349\n",
      "Sumida_20170920153355\n",
      "Sumida_20170920153401\n",
      "Sumida_20170920153404\n",
      "Sumida_20170920153408\n",
      "Sumida_20170920153411\n",
      "Sumida_20170920153442\n",
      "Sumida_20170920153448\n",
      "Sumida_20170920153451\n",
      "Sumida_20170920153505\n",
      "Sumida_20170920153512\n",
      "Sumida_20170920153831\n",
      "Sumida_20170920153902\n",
      "Sumida_20170920153904\n",
      "Sumida_20170920154102\n",
      "Sumida_20170920154109\n",
      "Sumida_20170920160546\n",
      "Sumida_20170920160605\n",
      "Sumida_20170920160619\n",
      "Sumida_20170920160652\n",
      "Sumida_20170920160659\n",
      "Sumida_20170920160701\n",
      "Sumida_20170920160704\n",
      "Sumida_20170920160707\n",
      "Sumida_20170920160710\n",
      "Sumida_20170920160713\n",
      "Sumida_20170920160829\n",
      "Sumida_20170920160833\n",
      "Sumida_20170920163505\n",
      "Sumida_20170920163513\n",
      "Sumida_20170920163524\n",
      "Sumida_20170920163540\n",
      "Sumida_20170920163546\n",
      "Sumida_20170920163655\n",
      "Sumida_20170920163702\n",
      "Sumida_20170920163704\n",
      "Sumida_20170920163710\n",
      "Sumida_20170920163715\n",
      "Sumida_20170920163718\n",
      "Sumida_20170920163721\n",
      "Sumida_20170920163723\n",
      "Sumida_20170920163726\n",
      "Sumida_20170920163733\n",
      "Sumida_20170920163741\n",
      "Sumida_20170920165335\n",
      "Sumida_20170920165338\n",
      "Sumida_20170920165519\n",
      "Sumida_20170920165526\n",
      "Sumida_20170920165541\n",
      "Sumida_20170920165629\n",
      "Sumida_20170920165635\n",
      "Sumida_20170920165638\n",
      "Sumida_20170920165640\n",
      "Sumida_20170920165645\n",
      "Sumida_20170920165711\n",
      "Sumida_20170920165725\n",
      "Sumida_20170920165729\n",
      "Sumida_20170920165734\n",
      "Sumida_20170920165854\n",
      "Sumida_20170920165859\n",
      "Sumida_20170920165908\n",
      "Sumida_20170920165911\n",
      "Sumida_20170920170153\n",
      "Sumida_20170920170156\n",
      "Sumida_20170920170202\n",
      "Sumida_20170920170209\n",
      "Sumida_20170920170246\n",
      "Sumida_20170920170250\n",
      "Sumida_20170920170253\n",
      "Sumida_20170920170256\n",
      "Sumida_20170920170259\n",
      "Sumida_20170921090632\n",
      "Sumida_20170921090635\n",
      "Sumida_20170921090711\n",
      "Sumida_20170921090747\n",
      "Sumida_20170921090750\n",
      "Sumida_20170921090908\n",
      "Sumida_20170921090929\n",
      "Sumida_20170921091551\n",
      "Sumida_20170921092556\n",
      "Sumida_20170921092608\n",
      "Sumida_20170921092631\n",
      "Sumida_20170921092634\n",
      "Sumida_20170921092908\n",
      "Sumida_20170921093028\n",
      "Sumida_20170921093035\n",
      "Sumida_20170921093116\n",
      "Sumida_20170921093119\n",
      "Sumida_20170921093122\n",
      "Sumida_20170921093125\n",
      "Sumida_20170921093221\n",
      "Sumida_20170921093614\n",
      "Sumida_20170921093631\n",
      "Sumida_20170921093939\n",
      "Sumida_20170921093956\n",
      "Sumida_20170921094056\n",
      "Files created\n"
     ]
    }
   ],
   "source": [
    "main()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
